<template>
  <n-result status="404" title="404 资源不存在" description="生活总归带点荒谬">
    <template #footer>
      <n-button @click="goHome">滚回去吧你</n-button>
    </template>
  </n-result>
</template>
<script lang="ts" setup>
  import { NResult, NButton } from "naive-ui"
  import { useRouter } from 'vue-router'

  const router = useRouter()

  const goHome = () => {
    router.push('/home')
  }
</script>